package com.Humanities.checkcode.feignclient;

import com.Humanities.checkcode.model.XcUser;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "auth-service",fallbackFactory = XcuserClientFactory.class)
@RequestMapping("/auth")
public interface XcuserClient {
    /**
     * 通过邮箱或者手机号查询用户
     *
     */
    @GetMapping("/id")
    public XcUser findXcuserByPhone(@RequestParam("s1") String s1);
}
